#-------------------------------------------------
#
# Project created by QtCreator 2019-04-13T21:39:09
#
#-------------------------------------------------

QT       += core gui charts xml network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

##################################
TrVersion = 1.0.0
TrRelease = 20190704
##################################

TARGET = QTraderWinFace_$${TrVersion}_$${TrRelease}
##################################

TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11
CONFIG += no_batch warn_off


SOURCES += \
        main.cpp \
        MainWindow.cpp \
    include/TrDateTime.cpp \
    include/TrImpl.cpp \
    include/TrManager.cpp \
    include/TrMarketSpi.cpp \
    include/TrQuote.cpp \
    include/TrService.cpp \
    CreateOrderDlg.cpp \
    NoFocusDelegate.cpp \
    include/TrCSVReader.cpp \
    include/TrFollowTrader.cpp \
    include/TrDataStore.cpp \
    include/TrMdGridBase.cpp \
    include/TrMdTickChart.cpp \
    include/TrMdKlineChart.cpp \
    include/TrMdRightBar.cpp \
    include/TrStrategyBase.cpp \
    DualThrust.cpp \
    include/TrSocket.cpp \
    include/TrHistoryQuote.cpp

HEADERS += \
        MainWindow.h \
    include/TrDateTime.h \
    include/TrGlobal.h \
    include/TrImpl.h \
    include/TrManager.h \
    include/TrMarketSpi.h \
    include/TrQuote.h \
    include/TrService.h \
    CreateOrderDlg.h \
    NoFocusDelegate.h \
    include/TrCSVReader.h \
    include/TrFollowTrader.h \
    include/TrDataStore.h \
    include/TrMdGridBase.h \
    include/TrMdTickChart.h \
    include/TrMdKlineChart.h \
    include/TrMdRightBar.h \
    include/TrStrategyBase.h \
    DualThrust.h \
    include/TrSocket.h \
    include/TrHistoryQuote.h

FORMS += \
        MainWindow.ui \
    CreateOrderDlg.ui

RC_ICONS = Image/icon/main.ico
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    Res.qrc


win32-msvc* {
    QMAKE_CXXFLAGS *=  /wd"4100"
    contains (QMAKE_CXXFLAGS_WARN_ON, -w34100) : QMAKE_CXXFLAGS_WARN_ON -= -w34100
}

####################################################################
####################################################################
DEPENDPATH  += $$PWD/include

CONFIG(debug, debug|release) {

    INCLUDEPATH += $$PWD/include/6.3.16_20190305_tradeapi64_windows
    DEPENDPATH  += $$PWD/include/6.3.16_20190305_tradeapi64_windows
    win32: LIBS += -L$$PWD/include/6.3.16_20190305_tradeapi64_windows -lthostmduserapi
    win32: LIBS += -L$$PWD/include/6.3.16_20190305_tradeapi64_windows -lthosttraderapi
    HEADERS += \
        include/6.3.16_20190305_tradeapi64_windows/ThostFtdcMdApi.h \
        include/6.3.16_20190305_tradeapi64_windows/ThostFtdcTraderApi.h \
        include/6.3.16_20190305_tradeapi64_windows/ThostFtdcUserApiDataType.h \
        include/6.3.16_20190305_tradeapi64_windows/ThostFtdcUserApiStruct.h \
        include/6.3.16_20190305_tradeapi64_windows/TrTraderSpi.h

    SOURCES += include/6.3.16_20190305_tradeapi64_windows/TrTraderSpi.cpp

} else {

    INCLUDEPATH += $$PWD/include/6.3.15_20190220_tradeapi64_se_windows
    DEPENDPATH  += $$PWD/include/6.3.15_20190220_tradeapi64_se_windows
    win32: LIBS += -L$$PWD/include/6.3.15_20190220_tradeapi64_se_windows -lthostmduserapi_se
    win32: LIBS += -L$$PWD/include/6.3.15_20190220_tradeapi64_se_windows -lthosttraderapi_se
    HEADERS += \
        include/6.3.15_20190220_tradeapi64_se_windows/ThostFtdcMdApi.h \
        include/6.3.15_20190220_tradeapi64_se_windows/ThostFtdcTraderApi.h \
        include/6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiDataType.h \
        include/6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiStruct.h \
        include/6.3.15_20190220_tradeapi64_se_windows/TrTraderSpi.h

    SOURCES += include/6.3.15_20190220_tradeapi64_se_windows/TrTraderSpi.cpp

}
####################################################################
####################################################################

